package chatSystem;


import chatController.ChatController;

import chatGUI.*;
import chatModel.*;
import chatNI.*;;

public class ChatSystem {

    private ChatGui gui;
    private ChatController controller;
    private ChatModel model;
    private ChatNI ni;

    private ChatSystem() {
        this.model = new ChatModel();
        this.gui = new ChatGui(model);
        this.ni = new ChatNI(model);
        this.controller = new ChatController(model, gui, ni);
        this.gui.setCc(controller);
        this.ni.setController(controller);
        model.addObserver(ni);
        model.addObserver(gui);
    }

    public static void main(String[] args) {
        ChatSystem cs = new ChatSystem();
    }
}
